import request from '@/utils/request'

export function add(data) {
  return request.post('buss/processManagement/add', data)
}
export function del(data) {
  return request.post('buss/processManagement/del', data)
}
export function edit(data) {
  return request.post('buss/processManagement/edit', data)
}
export function check(data) {
  return request.get('buss/processManagement/check?id='+data)
}
export function getTablePage(data) {
  return request.post('buss/processManagement/listPage', data)
}

export function start(data) {
  return request.post('buss/processManagement/start?id='+data)
}

export function startList(data) {
  return request.post('buss/processManagement/startList', data)
}

export function complete(data) {
  return request.post('buss/processManagement/complete', data)
}

export function completeList(data) {
  return request.post('buss/processManagement/completeList', data)
}

export function reject(data) {
  return request.post('buss/processManagement/reject', data)
}


export function getFirstSelectAssigneeList(data) {
  return request.post('buss/processManagement/getFirstSelectAssigneeList', data)
}

export function changeMaterialStatus(data) {
  return request.get('buss/processManagement/changeMaterialStatus?id='+data)
}

export function getHiddenPassNum(data) {
  return request.post('buss/processManagement/getHiddenPassNum', data)
}

export default {
  add,
  del,
  edit,
  check,
  getTablePage,
  start,
  complete,
  reject,
  startList,
  completeList,
  getFirstSelectAssigneeList,
  changeMaterialStatus,
  getHiddenPassNum,
}
